package cn.zk.controller;

import cn.zk.service.IVerificationCodeService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.Map;

@RestController("VerificationCodeController")
@RequestMapping("/code")
public class VerificationCodeController {
    @Resource
    private IVerificationCodeService iVerificationCodeService;

    @GetMapping("/code")
    public Map<String,Object> getVerificationCode() {
//        return iVerificationCodeService.getArithmeticCaptcha();
        return iVerificationCodeService.getSpecCaptcha();
    }

}
